let btn = document.querySelector(".btn");

let input = document.querySelector(".search-input");
let flag = true;
btn.addEventListener("click", () => {
  input.style.width = flag ? "240px" : 0;
  input.style.paddingLeft = flag ? "20px" : 0;
  if (flag) {
    input.focus();
  }
  flag = !flag;
});
